package com.dbtimer.dbupdatespring.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbtimer.dbupdatespring.dao.DmRunConfigDao;
import com.dbtimer.dbupdatespring.entity.LastDataEntity;
import com.dbtimer.dbupdatespring.entity.RunConfigEntity;
import com.dbtimer.dbupdatespring.service.RunConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 11092
* @description 针对表【RunConfig】的数据库操作Service实现
* @createDate 2022-04-15 14:43:51
*/
@Service("runConfigService")
public class RunConfigServiceImpl extends ServiceImpl<DmRunConfigDao, RunConfigEntity>
    implements RunConfigService{
    @Autowired
    DmRunConfigDao dmRunConfigDao;

    /**
     * @Author swx
     * @Description //取出达梦数据库RunConfig表中所有数据
     * @Date 23:24 2022/4/17
     * @Param []
     * @Return java.util.List<com.dbtimer.dbupdatespring.entity.RunConfigEntity>
     */
    @Override
    public List<RunConfigEntity> getAll(){
        QueryWrapper<RunConfigEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.select();
        return dmRunConfigDao.selectList(queryWrapper);
    }


}




